<?php

namespace app\admin\model;

use think\Model;

/**
 * XPotsq
 * @controllerUrl 'xPotsq'
 */
class XPotsq extends Model
{
    // 表主键
    protected $pk = 'TKID';
    
    // 表名
    protected $table = 'x_potsq';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    protected $createTime = false;
    protected $updateTime = false;

    public function fp(){
        return    $this->hasMany('XPotfp','TKID','TKID');
    }
    public function good(){
        return $this->hasMany('XPotfpgoods','TKID','TKID');
    }
}